Increase heapsize for mbedtls library
authorSoby Mathew <[email protected]>
Mon, 5 Jun 2017 11:18:04 +0000 (12:18 +0100)
committerSoby Mathew <[email protected]>
Mon, 5 Jun 2017 11:23:27 +0000 (12:23 +0100)
The mbedTLS library requires larger heap memory for verification of RSASSA-PSS
signature in certificates during Trusted Board Boot. This patch increases the
heap memory for the same.

Change-Id: I3c3123d7142b7b7b01463516ec436734895da159
Signed-off-by: Soby Mathew <[email protected]>
drivers/auth/mbedtls/mbedtls_common.c

index 336e44be6f4cce8ed47f25904a1e7288021ceb6e..3799d4181e7e23ffa1c2018cafc99fb92ba6fbf7 100644 (file)
@@ -16,7 +16,7 @@
 #if (TF_MBEDTLS_KEY_ALG_ID == TF_MBEDTLS_ECDSA)
 #define MBEDTLS_HEAP_SIZE              (14*1024)
 #elif (TF_MBEDTLS_KEY_ALG_ID == TF_MBEDTLS_RSA)
-#define MBEDTLS_HEAP_SIZE              (6*1024)
+#define MBEDTLS_HEAP_SIZE              (7*1024)
 #endif
 static unsigned char heap[MBEDTLS_HEAP_SIZE];